package colthgame.app;

public class BaseGameObject {
	enum E_Type{
		eCHARACTER,
		eCOSTUME,
		eMAX
	}
	
	BaseGameObject( E_Type eType ){
		m_eType = eType;
	}
	
	public void SetPosX( int nPosX ){
		m_nPosX = nPosX;
	}
	public int GetPosX(){
		return m_nPosX;
	}
	
	public void SetPosY( int nPosY ){
		m_nPosY = nPosY;
	}
	public int GetPosY(){
		return m_nPosY;
	}
	
	public void SetWidth(int _nWidth) {
		m_nWidth = _nWidth;
	}
	public int GetWidth(){
		return m_nWidth;
	}
	public int GetWidth_Half(){
		return m_nWidth/2;
	}
	
	public void SetHeight(int _nHeight) {
		m_nHeight = _nHeight;
	}
	public int GetHeight(){
		return m_nHeight;
	}
	public int GetHeight_Half(){
		return m_nHeight/2;
	}
	
	public E_Type GetType(){
		return m_eType;
	}
	
	private E_Type  m_eType;	//오브젝트 타입
	private int m_nPosX;		//오브젝트 중심 좌표
	private int m_nPosY;		//오브젝트 중심 좌표
	private int m_nWidth;		//오브젝트 좌우 크기
	private int m_nHeight;		//오브젝트 상하 크기

}
